package io.terminus.basic;

/**
 * @author lichunlong lcl253137@alibaba-inc.com
 * @desc 静态成员变量未被final时，它的值可以被更改
 * @date 2023-09-25
 */
public class StaticFinalDemo {

    public static int a = 1;

    public static void main(String[] args) {
        int a = 10;
        a++;
        StaticFinalDemo.a++;
        StaticFinalDemo t = new StaticFinalDemo();

        System.out.println("a: " + a + "; t.a: " + t.a);
    }
}